package com.zx.designpattern.model.http.api;


import com.zx.designpattern.model.http.BaseEntity;
import com.zx.designpattern.model.bean.DiyPoemMod;

import java.util.List;
import java.util.Map;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;

/**
 * Created by zhoux on 2017/3/15.
 * 注释：接口
 */

public interface PoemDiyService {
    //    @GET("poem/getList")
//    Flowable<BaseEntity<List<PoemMod>>> getList(@Query("pageNum") int pageNum, @Query("pageSize") int pageSize, @Query("pageOrderBy") String pageOrderBy, @Query("dynastyId") String dynastyId);
    @GET("diyPoem/getList")
    Flowable<BaseEntity<List<DiyPoemMod>>> getList(@QueryMap Map<String, String> page);

    @GET("diyPoem/getMyList")
    Flowable<BaseEntity<List<DiyPoemMod>>> getMyList(@QueryMap Map<String, String> page);

    @GET("diyPoem/getMyFavList")
    Flowable<BaseEntity<List<DiyPoemMod>>> getMyFavList(@QueryMap Map<String, String> page);

    @GET("diyPoem/getMyLikeList")
    Flowable<BaseEntity<List<DiyPoemMod>>> getMyLikeList(@QueryMap Map<String, String> page);


    @GET("diyPoem/islike")
    Flowable<BaseEntity> islike(@QueryMap Map<String, String> page);

    @GET("diyPoem/like")
    Flowable<BaseEntity> like(@QueryMap Map<String, String> page);


    @GET("diyPoem/getDetail")
    Flowable<BaseEntity<DiyPoemMod>> getDetail(@QueryMap Map<String, String> page);
}
